<?php

class Reservations_RequestErrorView extends SrsReservationsBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
		$hall = Doctrine::getTable('hall')->find($rd->getParameter('hall'));

		if (!$hall instanceof Hall) return $this->forward404();

   	$this->setupHtml($rd)->setTemplate('AddInput');

		$referer = $rd->getParameter('referer', $this->genUrl('reservation.browse', array('hall' => $rd->getParameter('hall'))));

		$this->setAttributes(array(
			'hall'    => $hall,
			'referer' => $referer,
		));
	}
}